﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using DeepZoomPivotConstructor.DTBuilderLib;

namespace DeepZoomSLUtilities.HotSpots.Specific
{
    /// <summary>
    /// Base class for a particular action
    /// </summary>
    public class HotSpotActionBase
    {
        public HotSpotActionBase(HotSpotInfo parent, DZHotSpotMetaData.ActionData info)
        {
            HSInfo = parent;
            LeftClickToActivate = info.LinkActivatedByLeftClick;
            KeyToActivate = info.LinkActivatedByKeys;
        }

        /// <summary>
        /// What is the hot spot that is holding onto us!?
        /// </summary>
        protected HotSpotInfo HSInfo { get; private set; }

        /// <summary>
        /// Does this action respond to a left lick? 
        /// </summary>
        public bool LeftClickToActivate { get; private set; }

        /// <summary>
        /// What keys will fire this action?
        /// </summary>
        public int KeyToActivate { get; private set; }

        /// <summary>
        /// Execute the hotspot action.
        /// </summary>
        internal virtual void Execute()
        {
        }
    }
}
